package com.sise.wangzhan.client;

import com.sise.wangzhan.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @Classname BookService
 * @Description TODO
 * @Date 2020/5/21 9:40
 * @Created by wangzhan
 */
@FeignClient(value = "zuul-book-provider")
public interface BookService {

    @RequestMapping(value = "/book/{bookId}", method = RequestMethod.GET)
    Book getBook(@PathVariable("bookId") int bookId);

   /* @RequestMapping(value = "/errorTest", method = RequestMethod.GET)
    String errorTest();*/

}
